package com.industry.examinaion.dal.dataobject;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.industry.framework.core.annountions.record.IdooRecordBizType;
import com.industry.framework.core.annountions.record.IdooRecordProperty;
import com.industry.system.dal.dataobject.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;

/**
 * <p>
 * 题库表
 * </p>
 *
 * @author nbZhuoZh
 * @since 2025-07-01
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("examinaion_bank")
@IdooRecordBizType
public class ExaminaionBank extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 租户编号
     */
    private String tenantId;

    /**
     * 部门ID；空则为公共客户数据
     */
    private String deptId;

    /**
     * 题库类型（1单选-2多选-3填空-4简答... 关联code：EXAMBANKTYPE）
     */
    @IdooRecordProperty(value="类型" , codeKey = "EXAMBANKTYPE")
    private String type;

    /**
     * 题库名称
     */
    @IdooRecordProperty("题库名称")
    private String name;

    /**
     * 题库描述
     */
    @IdooRecordProperty(value = "题库描述" , idooSelector = false)
    private String description;

    /**
     * 删除标记
     */
    @TableLogic
    private String delFlag;

    /**
     * 创建部门
     */
    private String createDept;
}
